import wfc from '@/wfc/client/wfc'
import GroupMemberType from '@/wfc/model/groupMemberType'

// 检查是否是群主
export const checkIsQunzhu = (groupId = '') => {
  const memberId = wfc.getUserId()
  const memberInfo = wfc.getGroupMember(groupId, memberId)
  return (
    [GroupMemberType.Manager, GroupMemberType.Owner].indexOf(memberInfo.type) >=
    0
  )
}
